projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ffb4be
)
pmic: Enable power_board_init() support at TRATS
author
Łukasz Majewski
<
[email protected]
>
Tue, 13 Nov 2012 03:21:57 +0000
(
03:21
+0000)
committer
Anatolij Gustschin
<
[email protected]
>
Wed, 14 Nov 2012 10:21:09 +0000
(11:21 +0100)
Enable support for power_board_init() method at TRATS board.
Signed-off-by: Lukasz Majewski <
[email protected]
>
Signed-off-by: Kyungmin Park <
[email protected]
>
Cc: Minkyu Kang <
[email protected]
>
board/samsung/trats/trats.c
patch
|
blob
|
history
diff --git
a/board/samsung/trats/trats.c
b/board/samsung/trats/trats.c
index e0a98901f733029e5621813b4a13e3d343401c36..1fa10ef056c56ee92756de67bd8274583e4ee714 100644
(file)
--- a/
board/samsung/trats/trats.c
+++ b/
board/samsung/trats/trats.c
@@
-68,10
+68,6
@@
int board_init(void)
check_hw_revision();
printf("HW Revision:\t0x%x\n", board_rev);
-#if defined(CONFIG_PMIC)
- pmic_init(I2C_5);
-#endif
-
return 0;
}
@@
-90,6
+86,17
@@
void i2c_init_board(void)
s5p_gpio_direction_output(&gpio2->y4, 1, 1);
}
+int power_init_board(void)
+{
+ int ret;
+
+ ret = pmic_init(I2C_5);
+ if (ret)
+ return ret;
+
+ return 0;
+}
+
int dram_init(void)
{
gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE) +